import request from '@/utils/request'

export function state(id) {
	return request({
		url: '/pay/state?id='+id,
		method: 'get'
	})
}

export function wxpay(id) {
	return request({
		url: '/pay/wxpay?id='+id,
		method: 'get'
	})
}

export function priceInfo(query) {
	return request({
		url: '/product/priceInfo',
		method: 'get',
		params: query
	})
}

export function setPrice(data) {
	return request({
		url: '/product/setPrice',
		method: 'put',
		data: data
	})
}

export function productNames() {
	return request({
		url: '/product/names',
		method: 'get'
	})
}

export function getPayList(query) {
	return request({
		url: '/pay/listCom',
		method: 'get',
		params: query
	})
}

export function getPayInfo(orderNo) {
	return request({
		url: '/pay/'+orderNo,
		method: 'get'
	})
}

export function getValue(key) {
	return request({
		url: '/system/config/getValue/'+key,
		method: 'get'
	})
}

export function getRankingList() {
	return request({
		url: '/pay/rankingList',
		method: 'get'
	})
}

export function QRCodeImg() {
	return request({
		url: '/wx/QRCodeImg',
		method: 'get'
	})
}

export const subjects = ['大数据信用-专业版', '大数据信用-普通版', '婚恋查询']